<nav>
    <header>
        <div class="header">
                <div class="head">
                    <div class="logo fl">
                        <h1><a href="index.html"><img alt="toncheng网站建设" src="__TMPL__/public/assets/html-c-j/images/logo.gif" width="151px" height="39px" /></a></h1>
                    </div>
                    <div class="menu fl xy_left">
                        <nav>
                            <navigation nav-id="" root="ul" id="" class=""
                                        max-level="0">
                                <navigationMenu>
                                    <li>
                                        <a id="" href="{$menu.href|default=''}" target="{$menu.target|default=''}">
                                            {$menu.name|default=''}
                                        </a>
                                    </li>
                                </navigationMenu>
                            </navigation>

                        </nav>
                    </div>
                    <div class="menu fr">
                        <ul >
                            <!--
                                          <li class="login">
                                              <a class="dropdown-toggle notifactions" href="/index.php/user/notification/index"> <i
                                                      class="fa fa-envelope"></i> <span class="count">0</span></a>
                                          </li>
                            -->
                            <li id="xy_user_login" style="display: none">
                                <ul class="xy_user" style="height: 100px;" >
                                    <php>$user=cmf_get_current_user();</php>
                                    <if condition="empty($user['avatar'])">
                                        <img src="__TMPL__/public/assets/images/headicon.png" class="xy_headicon" width="100" height="100px"/>
                                        <else/>
                                        <img src="{:cmf_get_user_avatar_url($user['avatar'])}" class="xy_headicon" width="100" height="100px"/>
                                    </if>
                                    <li class="xy_user-nickname"><a href="{:cmf_url('user/Profile/center')}"></a></li>
                                </ul>
                                <ul id="xy_user2">
                                    <li><a href="{:cmf_url('user/Profile/center')}">个人中心</a></li>
                                    <ul><a href="{:cmf_url('user/Index/logout')}">退出</a></ul>
                                </ul>
                            </li>
                            <div id="xy_user_offline">
                                <li><a href="{:cmf_url('user/Login/index')}">&nbsp;登录</a></li>
                                <li><a href="{:cmf_url('user/Register/index')}">注册</a></li>
                            </div>
                        </ul>
                        <div class="clear"></div>
                    </div>
                </div>
            </div>
    </header>
</nav>